package com.xuemeng.entity;


import javax.persistence.*;


@Table(name = "t_menu")
public class Tmenu {
        @Id
        private Integer id;

        private String icon;

        private String name;

        private Integer state;

        private String url;

        @Column(name = "p_id")
        private Integer pId;

        /**
         * @return id
         */
        public Integer getId() {
                return id;
        }

        /**
         * @param id
         */
        public void setId(Integer id) {
                this.id = id;
        }

        /**
         * @return icon
         */
        public String getIcon() {
                return icon;
        }

        /**
         * @param icon
         */
        public void setIcon(String icon) {
                this.icon = icon == null ? null : icon.trim();
        }

        /**
         * @return name
         */
        public String getName() {
                return name;
        }

        /**
         * @param name
         */
        public void setName(String name) {
                this.name = name == null ? null : name.trim();
        }

        /**
         * @return state
         */
        public Integer getState() {
                return state;
        }

        /**
         * @param state
         */
        public void setState(Integer state) {
                this.state = state;
        }

        /**
         * @return url
         */
        public String getUrl() {
                return url;
        }

        /**
         * @param url
         */
        public void setUrl(String url) {
                this.url = url == null ? null : url.trim();
        }

        /**
         * @return p_id
         */
        public Integer getpId() {
                return pId;
        }

        /**
         * @param pId
         */
        public void setpId(Integer pId) {
                this.pId = pId;
        }
}